﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.Entities.BPM_Business.Reports
{
    [SugarTable("OrderMaterialDetail")]
    public class OrderMaterialDetailEntity
    {
        /// <summary>
        /// 唯一ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public Guid Id { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        public string OrderStatus { get; set; }

        /// <summary>
        /// 交货单号
        /// </summary>
        public string DeliveryCode { get; set; }

        /// <summary>
        /// 销售凭证
        /// </summary>
        public string SalesDoc { get; set; }

        /// <summary>
        /// 物料
        /// </summary>
        public string MaterialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 物料规格
        /// </summary>
        public string MaterialSpec { get; set; }

        /// <summary>
        /// 产品市场分类
        /// </summary>
        public string MarketCategory { get; set; }

        /// <summary>
        /// M03子品牌描述
        /// </summary>
        public string SubBrandDes { get; set; }

        /// <summary>
        /// M06产品细分描述
        /// </summary>
        public string ProductDivideDesc { get; set; }

        /// <summary>
        /// 销售单位
        /// </summary>
        public string SalesUnit { get; set; }

        /// <summary>
        /// 基本单位
        /// </summary>
        public string BaseUnit { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 工厂
        /// </summary>
        public string Factory { get; set; }

        /// <summary>
        /// 客户
        /// </summary>
        public string CustomerCode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }

        /// <summary>
        /// T09
        /// </summary>
        public string T09 { get; set; }

        /// <summary>
        /// 客户组1描述
        /// </summary>
        public string CustomerGroupDesc1 { get; set; }

        /// <summary>
        /// 客户组2描述
        /// </summary>
        public string CustomerGroupDesc2 { get;set; }

        /// <summary>
        /// 渠道名称
        /// </summary>
        public string ChannelName { get; set; }

        /// <summary>
        /// 销售公司
        /// </summary>
        public string SalesCompany { get; set; }

        /// <summary>
        /// 销售大区
        /// </summary>
        public string SalesRegion { get; set; }

        /// <summary>
        /// 销售部描述
        /// </summary>
        public string SalesDeptDesc { get; set; }

        /// <summary>
        /// 信用状态
        /// </summary>
        public string CreditStatus { get; set; }

        /// <summary>
        /// 信用通过日期
        /// </summary>
        public string CreditPassDate { get; set; }

        /// <summary>
        /// 销售凭证行项目创建日期
        /// </summary>
        public string SalesDocCreateDate { get; set; }

        /// <summary>
        /// 请求交货日期
        /// </summary>
        public string DeliveryReqDate { get; set; }

        /// <summary>
        /// 客户确认要货日期
        /// </summary>
        public string DeliveryNeedDate { get; set; }

        /// <summary>
        /// 交货单创建日期
        /// </summary>
        public string DeliveryCodeCreateDate { get; set; }

        /// <summary>
        /// 运单创建日期
        /// </summary>
        public string WayBillCreateDate { get; set; }

        /// <summary>
        /// 实际发货日期
        /// </summary>
        public string DeliveryActualDate { get; set; }

        /// <summary>
        /// 运输方式
        /// </summary>
        public string TransportType { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public decimal? Price { get; set; }

        /// <summary>
        /// 重量
        /// </summary>
        public decimal? Weight { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public decimal? Quantity { get; set; }

        /// <summary>
        /// 数量-支
        /// </summary>
        public decimal? QuantityBranch { get; set; }

        /// <summary>
        /// 净重
        /// </summary>
        public decimal? NetWeight { get; set; }

        /// <summary>
        /// 毛重
        /// </summary>
        public decimal? GrossWeight { get; set; }

        /// <summary>
        /// 毛重-吨
        /// </summary>
        public decimal? GrossWeightTon { get; set; }

        /// <summary>
        /// 在售状态
        /// </summary>
        public string OnSaleStatus { get; set; }

        /// <summary>
        /// 是否外购
        /// </summary>
        public string IsExternalPurchase { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 添加用户Id
        /// </summary>
        public Guid? AddUserId { get; set; }

        /// <summary>
        /// 添加用户名称
        /// </summary>
        public string AddUserName { get; set; }
    }
}
